package auth

import (
	"grpc.getaway.adminspro.padmins.com/internal/api/module/admin/container"
	"net/http"
)

func Logout(c *container.Context) (interface{}, error) {
	Cookie := &http.Cookie{
		Name:     "token",
		Value:    "",
		MaxAge:   0,
		Domain:   "",
		Path:     "/",
		Secure:   false,
		HttpOnly: false,
	}

	c.Response.HeaderAdd("Set-Cookie", Cookie.String())
	return map[string]interface{}{}, nil
}
